package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CxdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CxdService extends BaseService<CxdBean> {

	CxdBean getCxdBeanById(String id) throws Exception;
	
	void removeCxdBeanById(String id) throws Exception;
	
	void removeCxdBeanByIds(String ids) throws Exception;
	
	CxdBean saveCxdBean(CxdBean crm) throws Exception;
	
	CxdBean updateCxdBean(CxdBean crm) throws Exception;
	
	Page<CxdBean>  findCxdBeanByCond(CxdBean bean,
			Page<CxdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCxdBeanExt(String sql) throws Exception;

	String findCxdBeanExtCreate(String tableName) throws Exception;

	String findCxdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCxdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCxdBeanExtData(String tableName, String id)
			throws Exception;
}